//
//  UITableViewCell+PYAdd.m
//  IHome
//
//   Created by zhujizheng on 2020/2/18.
//  Copyright © 2019年 com.zhujizheng. All rights reserved.
//

#import "UITableViewCell+PYAdd.h"

@implementation UITableViewCell (PYAdd)

- (void)removeAllGestures
{
    for (UIGestureRecognizer *gestureRecognizer in self.gestureRecognizers) {
        [self removeGestureRecognizer:gestureRecognizer];
    }
}

- (void)setLightSelectedBackgroundColor
{
    [self setSelectedBackgroundColor:[UIColor colorWithWhite:0 alpha:0.1]];
}

- (void)setSelectedBackgroundColor:(UIColor *)backgroundColor
{
    UIView *selectedBackgroundView = [UIView new];
    selectedBackgroundView.backgroundColor = backgroundColor;
    self.selectedBackgroundView = selectedBackgroundView;
}

@end
